
function checked(num:number,bit:number):number{
    var one:number = 1;
    one = one<<bit;
    return num & one;
}